#include <QGraphicsView>
#include <QTime>

class CPointerItem;
class CDiscItem;

class CAnalogClockView : public QGraphicsView
{
	Q_OBJECT
public:
	CAnalogClockView(QWidget *parent = nullptr);
	~CAnalogClockView();

private:
	void initItem();
	void resizeEvent(QResizeEvent* pEvent);

private slots:
	void slotTimeOut();

private:
	QGraphicsScene* m_pScene;
	CPointerItem* m_pHourItem;
	CPointerItem* m_pMinuteItem;
	CPointerItem* m_pSecondItem;
	CDiscItem* m_pDiscItem;
	QTime m_time;
};